package com.designpattern.createpattern.demo02;

public class ApplePizzaFactory extends PizzaFactory{
    @Override
    public Pizza createPizza(String type) {
        if("apple".equals(type)){
            return new ApplePizza();
        }
        return null;
    }
}
